// pages/kefu/index.js
var app = getApp()
var fetchApi = require("../../utils/httpPost.js");
Page({

    /**
     * 页面的初始数据
     */
    data: {
        kf_phone:'',
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad(options) {        
        this.data.kf_phone = app.getStorageSync("kf_phone");
        this.setData({
            kf_phone:this.data.kf_phone
        })
    },
    callPlatform(){
      var that = this;
      wx.makePhoneCall({
        phoneNumber: that.data.kf_phone,
      })
    },
    copyHandle(){
        wx.setClipboardData({
          data:  this.data.kf_phone,
          success: function (res) {
              wx.getClipboardData({
                  success: function (res) {
                      console.log(res.data) 
                  }
              })
            }
        })
    }
})